﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="ActivitateDidactica.aspx.cs" Inherits="IEWebSite.ActivitateDidactica" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<h1>
       <asp:Literal ID="litTitle" runat="server"></asp:Literal>
    </h1>
    
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" 
		DataSourceID="SqlDataSource1" GridLines="None">
<MasterTableView DataSourceID="SqlDataSource1">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
	<Columns>
		<telerik:GridHyperLinkColumn DataNavigateUrlFields="Titlu,IdCurs" HeaderText="Denumire Disciplina" 
			SortExpression="Titlu" UniqueName="Titlu" ItemStyle-HorizontalAlign="Left"
			DataNavigateUrlFormatString= "ProgramaCurs.aspx?idCurs={1}" DataTextField="Titlu" Target="_blank" 
			>
		</telerik:GridHyperLinkColumn>
		<telerik:GridBoundColumn DataField="Semestru" HeaderText="Semestru" HeaderStyle-HorizontalAlign="Center" SortExpression="Semestru" 
			UniqueName="Semestru">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="Tip" HeaderText="Tip Disciplina" HeaderStyle-HorizontalAlign="Center" SortExpression="Tip" 
			UniqueName="Tip">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="CategorieDisciplina" 
			HeaderText="Categorie Disciplina" HeaderStyle-HorizontalAlign="Center" SortExpression="CategorieDisciplina" 
			UniqueName="CategorieDisciplina">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="NrC" DataType="System.Int32" 
			HeaderText="Nr. C." HeaderStyle-HorizontalAlign="Center" SortExpression="NrC" UniqueName="NrC">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="NrS" DataType="System.Int32" 
			HeaderText="Nr. S." HeaderStyle-HorizontalAlign="Center" SortExpression="NrS" UniqueName="NrS">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="NrLP" DataType="System.Int32" 
			HeaderText="Nr. L/P" HeaderStyle-HorizontalAlign="Center" SortExpression="NrLP" UniqueName="NrLP">
		</telerik:GridBoundColumn>
		<telerik:GridBoundColumn DataField="PuncteCredit" DataType="System.Int32" 
			HeaderText="Puncte Credit" HeaderStyle-HorizontalAlign="Center" SortExpression="PuncteCredit" 
			UniqueName="PuncteCredit">
		</telerik:GridBoundColumn>
	</Columns>
</MasterTableView>
		</telerik:RadGrid>
	<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
		ConnectionString="<%$ ConnectionStrings:SiteIEConnectionString %>" 
		SelectCommand="SELECT Curs.IdCurs, Curs.Semestru, Curs.Titlu, SysTipDisciplina.Tip, SysCategorieDisciplina.CategorieDisciplina, Curs.NrC, Curs.NrS, Curs.NrLP, Curs.PuncteCredit FROM Curs INNER JOIN SysCiclu ON Curs.IdCiclu = SysCiclu.IdSysCiclu INNER JOIN SysCategorieDisciplina ON Curs.IdSysCategorieDisciplina = SysCategorieDisciplina.IdSysCategorieDisciplina INNER JOIN SysTipDisciplina ON Curs.IdSysTipDisciplina = SysTipDisciplina.IdSysTipDisciplina INNER JOIN PlanInvatamant ON Curs.IdPlanInvatamant = PlanInvatamant.IdPlanInvatamant
		WHERE Curs.AnStudiu = @AnStudiu AND IdSysCiclu = @IdSysCiclu
		">
		<SelectParameters>
			<asp:QueryStringParameter Name="AnStudiu" QueryStringField="an" Type="Int32" />
			<asp:QueryStringParameter Name="IdSysCiclu" QueryStringField="ciclu" Type="Int32" />
		</SelectParameters>
	</asp:SqlDataSource>
	</asp:Content>
